﻿# 设置窗口标题
$host.ui.RawUI.WindowTitle = "安装更新Emby...（Code By YuBo）"

# 显示下载信息
Write-Host "下载最新版Emby..."

# 创建id.ini文件
$iniContent = @"
Emby
9nblggh4t70l
"@
$iniPath = Join-Path -Path $PSScriptRoot -ChildPath "id.ini"
Set-Content -Path $iniPath -Value $iniContent -Encoding UTF8

# 执行AddApp.ps1脚本
$addAppScriptPath = Join-Path -Path $PSScriptRoot -ChildPath "AddApp.ps1"
& powershell -ExecutionPolicy Bypass -File $addAppScriptPath

# 启动WhatsApp
Start-Process "Emby:"
